Add time-lock mechanism for admin actions#174
Merged
Conversation
Introduce a 144-block (~24 hour) delay for admin actions. Changes must be proposed first, then executed after the timelock expires. Includes propose/execute/cancel functions for both fee changes and pause state. Direct set-paused and set-fee-basis-points remain for emergency use. Add read-only functions to query pending changes and their effective block heights.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #61
Introduces a 144-block (~24 hour) time-lock for administrative changes to give users advance notice.
New functions:
propose-fee-change/execute-fee-change/cancel-fee-changepropose-pause-change/execute-pause-changeget-pending-fee-change/get-pending-pause-change(read-only)How it works:
Direct
set-pausedandset-fee-basis-pointsremain available for emergency use. All 23 existing tests continue to pass.